projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fcfa239
)
Fix a stupid error in gfilenotify.c.
author
Michael Albinus
<michael.albinus@gmx.de>
Tue, 3 Nov 2015 17:17:53 +0000
(18:17 +0100)
committer
Michael Albinus
<michael.albinus@gmx.de>
Tue, 3 Nov 2015 17:17:53 +0000
(18:17 +0100)
* src/gfilenotify.c (dir_monitor_callback): Cancel monitor only,
if we've got a `deleted' signal AND the file name is the watched one.
src/gfilenotify.c
patch
|
blob
|
history
diff --git
a/src/gfilenotify.c
b/src/gfilenotify.c
index 2057f8853006d7c823daf967884bbc424338ac43..8660f415e2f0990aa669ce248ce5d541a2ec8237 100644
(file)
--- a/
src/gfilenotify.c
+++ b/
src/gfilenotify.c
@@
-110,6
+110,7
@@
dir_monitor_callback (GFileMonitor *monitor,
/* Cancel monitor if file or directory is deleted. */
if (!NILP (Fmember (symbol, list2 (Qdeleted, Qmoved))) &&
+ (strcmp (name, SSDATA (XCAR (XCDR (watch_object)))) == 0) &&
!g_file_monitor_is_cancelled (monitor))
g_file_monitor_cancel (monitor);
}